@import url('./nv-variables.css');

/* ==========================================================================
   1. DESKTOP BASE STYLES (Default Viewport)
   ========================================================================== */

.nv-lang-btn {
    position: fixed;
    top: 1dvh;
    right: 4dvh;
    height: 6dvh;
    max-width: 40vw;

    /* Reset Button Styles */
    background-color: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;

    /* Typography & Core Style */
    color: var(--text-color, var(--nv-white));
    font-family: inherit;
    font-size: var(--nv-font-size-small);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 9999;

    /* Alignment */
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    /* Cinematic Subtle Micro-interaction */
    transition: opacity var(--nv-transition-cinematic);
    opacity: 0.8;
}

.nv-lang-btn:hover {
    opacity: 0.4;
}

html.light-mode .nv-lang-btn {
	color: var(--nv-scale-black-90);
}

.home-taskbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 150%;
    height: 8dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    transform: translateX(-1px);
    z-index: 100;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html.light-mode .home-taskbar {
    background-color: var(--nv-scale-white-30);
    color: var(--nv-black);
    backdrop-filter: blur(7px) saturate(150%) contrast(120%);
    border-color: var(--nv-scale-black-10);
    box-shadow: inset 0 0 20px -5px var(--nv-scale-white-50), 0px 6px 24px var(--nv-scale-black-20);
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: var(--nv-scale-black-100);
    z-index: 11000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    animation: overlayFadeOut 6s var(--nv-ease-main) 8s forwards;
    pointer-events: all;
    user-select: none;
}

html.light-mode #intro-overlay {
    background-color: var(--nv-scale-white-100);
}

.bkg {
    height: 100dvh;
    width: 100%;
    object-fit: cover;
}

.intro {
    position: absolute;
    top: 30%;
    left: 80dvh;
    right: 5%;
    font-size: 30px;
    animation: fadeSlideUp 1s var(--nv-ease-main) forwards;
    color: var(--nv-white);
    display: block;
}

.img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 100vh;
    object-fit: cover;
}

.blur-img {
    object-fit: cover;
    width: 100%;
    height: 100dvh;
    object-position: bottom center;
    position: fixed;
}

html.light-mode .blur-img {
    display: none;
}

.blur-filter {
    position: absolute;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    filter: blur(40px) saturate(120%);
}


/* ==========================================================================
   2. RESPONSIVE MEDIA QUERIES (Cascading Downwards)
   ========================================================================== */

/* --- Tablets & Medium Screens (<= 900px) --- */
@media (max-width: 900px) {
    .local-button,
    .static-button,
    .intro-mobile {
        display: none;
    }

    .gallery-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--nv-space-sm);
        margin: 2rem 0;
        margin-top: 9vh;
        padding: 0 1rem;
        position: relative;
    }

    .intro {
        position: absolute;
        left: 5vw;
        top: 35vh;
        text-align: left;
        font-family: 'Inter', sans-serif;
        color: var(--nv-white);
        z-index: 210000000;
        display: block;
    }

    .intro p {
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

	
    .blur-img,
    .img-mobile,
    .intro {
        display: none;
        visibility: hidden;
    }

    .intro-mobile {
        position: absolute;
        font-size: 20px;
        text-align: left;
        padding: 0 5vw;
        top: 30dvh;
        width: 80%;
        background-color: transparent;
        z-index: 3;
        display: block;
    }

    .img,
    .img-mobile {
        position: absolute;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        object-fit: cover;
        z-index: 1;
    }

    .filter {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100dvh;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2;
    }
}

/* --- Large Viewport Specific Guard (>= 769px) --- */
@media (min-width: 769px) {
    .img-mobile {
        display: none;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 90%;
        font-size: 10px;
        color: var(--nv-white);
        background-color: transparent;
        padding: 0 5vw 1dvh;
        text-align: left;
        margin: 0;
    }

    .mobile-menu-overlay {
        display: none;
    }
}

/* --- Small Tablets & Large Mobiles (<= 768px) --- */
@media (max-width: 768px) {
    .nv-lang-btn {
        right: 2dvh;
        font-size: var(--nv-font-size-small);
    }

    html.light-mode .filter {
        background: linear-gradient(to right, var(--nv-scale-white-10) 0%, transparent 80%);
    }

    .blur-img,
    .blur-filter {
        display: none;
    }

    .footer {
        position: fixed;
        bottom: 3dvh;
        left: 8vw;
        width: auto;
        font-size: 10px;
        background: transparent;
        z-index: 5;
        padding: 0;
    }

    html.light-mode .intro,
    html.light-mode .menu-label,
    html.light-mode .footer {
        color: var(--nv-scale-black-90);
    }

    #intro-overlay {
        height: 100dvh;
    }

    .intro-text {
        display: none;
    }
}

/* --- Ultra Small Mobiles (<= 560px) --- */
@media (max-width: 560px) {
    .img {
        width: 100vw;
        height: 100dvh;
    }

    .nav-buttons {
        display: none;
    }

    .footer {
        color: var(--nv-white);
    }

    html.light-mode .intro-mobile {
        color: var(--nv-scale-black-90);
    }

    html.light-mode .filter {
        background-color: var(--nv-scale-white-10);
    }

    html.light-mode .footer,
    html.light-mode .menu-label {
        color: var(--nv-scale-black-90);
    }
}